LassoScript Utility
Basics Browse Detail

[Email_Compose->AddAttachment]

Tag Link [Email_Compose->AddAttachment] Category Email
Type Member Source Available Yes
Support Preferred Version 8.0
Change Unchanged Data Source Any
Output Type None Security Tag
Implementation LDML Sets Lasso 8.5, Lasso 8.0

Description

[Email_Compose-> AddAttachment] adds a new attachment to a message being composed. The tag requires two parameters: the first parameter should specify the data of the file to be attached. This data will be automatically Base64 encoded before being placed in the message. The second parameter is a -Name which specifies the name of the attached file.

An optional -Path parameter can be used to specify the name of a file that will be included as the attachment. If the -Path parameter is specified then the -Name will be automatically set to the name of the included file.

Syntax

[Email_Compose->(AddAttachment: 'data', -name='attached.txt')]

[Email_Compose->(AddAttachment: -Path='include.txt')]

Parameters

Optional Parameters
-Path The path to a file to be included as the attachment. If -Path is specified then neither -Data or -Name is required.
-Data The data of the file to be attached. This data will be automatically base 64 encoded.
-Name The name of the attached file. Required if -Data is specified. Optional if -Path is specified.

Examples

See the Lasso 8 Language Guide for examples of how to use this tag.